const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  token: (state) => state.user.token,
  avatar: (state) => state.user.avatar,
  userId: (state) => state.user.userId,
  name: (state) => state.user.name,
  tenantName: (state) => state.user.tenantName,
  roleNames: (state) => state.user.roleNames,
  account: (state) => state.user.account,
  lastLoginTime: (state) => state.user.lastLoginTime,
  positionName: (state) => state.user.positionName,
  orgId: (state) => state.user.organizationId,
  infornum: (state) => state.user.infornum,
  isLock: (state) => state.user.isLock,
  roles: (state) => state.user.roles,
  authorities: (state) => state.user.authorities,
  wsUrl: (state) => state.user.wsUrl,
  permission_routes: (state) => state.permission.routes,
  visitedViews: (state) => state.tagsView.visitedViews,
  cachedViews: (state) => state.tagsView.cachedViews,
  routes: (state) => state.permission.routes,
  app_routes: (state) => state.permission.appRoutes,
  current_routes: (state) => state.permission.currentRoutes,
  current_app_path: (state) => state.permission.currentAppPath,
  theme: (state) => state.settings.theme,
  sidebarThemeColor: (state) => (state.settings.sidebarTheme === 'white' ? '#ffffff' : '#1A2232'),
  sidebarTextColor: (state) => (state.settings.sidebarTheme === 'white' ? '#131314' : 'rgba(255,255,255,.7)'),
  TopThemeColor: (state) => {
    const standard = {
      white: '#ffffff',
      black: '#1A2232',
      theme: state.settings.theme
    }
    return standard[state.settings.TopTheme]
  },
  TopTextColor: (state) => (state.settings.TopTheme === 'white' ? '#131314' : 'rgba(255,255,255,.7)'),
  TopActiveTextColor: (state) => (state.settings.TopTheme === 'white' ? state.settings.theme : '#fff'),
  dataText: (state) => state.settings.dataText
}
export default getters
